//go:build !windows
// +build !windows

// 包项提供了可供使用的结构和辅助函数
// Package term provides structures and helper functions to work with
// terminal (state, sizes).
package term // import "xemo.top/docker/docker/pkg/term"

import (
	"errors"
)

var (
	// 如果终端的状态无效，则返回ErrInvalidState。
	// ErrInvalidState is returned if the state of the terminal is invalid.
	ErrInvalidState = errors.New("Invalid terminal state")
)

// State 代表终端的状态
// State represents the state of the terminal.
type State struct {
	termios Termios
}
